# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.

from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest


class GetSiteMonitorRequest(JDCloudRequest):
    """
    获取站点监控任务信息
    """

    def __init__(self, parameters, header=None, version="v2"):
        super(GetSiteMonitorRequest, self).__init__(
            '/siteMonitor', 'GET', header, version)
        self.parameters = parameters


class GetSiteMonitorParameters(object):

    def __init__(self,):
        """
        """

        self.nameOrAddr = None
        self.name = None
        self.id = None
        self.taskType = None
        self.pageNumber = None
        self.pageSize = None
        self.withStats = None
        self.withDeleted = None
        self.timeInterval = None
        self.filters = None

    def setNameOrAddr(self, nameOrAddr):
        """
        :param nameOrAddr: (Optional) 
        """
        self.nameOrAddr = nameOrAddr

    def setName(self, name):
        """
        :param name: (Optional) 
        """
        self.name = name

    def setId(self, id):
        """
        :param id: (Optional) 
        """
        self.id = id

    def setTaskType(self, taskType):
        """
        :param taskType: (Optional) 
        """
        self.taskType = taskType

    def setPageNumber(self, pageNumber):
        """
        :param pageNumber: (Optional) 
        """
        self.pageNumber = pageNumber

    def setPageSize(self, pageSize):
        """
        :param pageSize: (Optional) 
        """
        self.pageSize = pageSize

    def setWithStats(self, withStats):
        """
        :param withStats: (Optional) 
        """
        self.withStats = withStats

    def setWithDeleted(self, withDeleted):
        """
        :param withDeleted: (Optional) 1:包含删除对象，默认：0
        """
        self.withDeleted = withDeleted

    def setTimeInterval(self, timeInterval):
        """
        :param timeInterval: (Optional) 查询的可用率、响应时间的时间间隔，最大不超过30天，支持分钟级别,小时级别，天级别，例如：1m、1h、1d
        """
        self.timeInterval = timeInterval

    def setFilters(self, filters):
        """
        :param filters: (Optional) name为'id' - 站点监控id
        """
        self.filters = filters

